package com.zch.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.ChatNotifyMapper;
import com.zch.dao.model.ChatNotify;
import com.zch.dao.model.ChatNotifyExample;
import com.zch.daoEx.ChatNotifyMapperEx;
import com.zch.daoEx.model.ChatNotifyEx;

@Service
public class ChatNotifyService {
	@Autowired
	private ChatNotifyMapper chatNotifyMapper;
	@Autowired
	private ChatNotifyMapperEx chatNotifyMapperEx;

	public int countByExample(ChatNotifyExample example) {
		return this.chatNotifyMapper.countByExample(example);
	}

	public ChatNotify selectByPrimaryKey(String id) {
		return this.chatNotifyMapper.selectByPrimaryKey(id);
	}

	public List<ChatNotify> selectByExample(ChatNotifyExample example) {
		return this.chatNotifyMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.chatNotifyMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(ChatNotify record) {
		return this.chatNotifyMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(ChatNotify record) {
		return this.chatNotifyMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ChatNotifyExample example) {
		return this.chatNotifyMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(ChatNotify record, ChatNotifyExample example) {
		return this.chatNotifyMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(ChatNotify record, ChatNotifyExample example) {
		return this.chatNotifyMapper.updateByExample(record, example);
	}

	public int insert(ChatNotify record) {
		return this.chatNotifyMapper.insert(record);
	}

	public int insertSelective(ChatNotify record) {
		return this.chatNotifyMapper.insertSelective(record);
	}
	
	public List<ChatNotifyEx> selectMyNotify(String id){
		return this.chatNotifyMapperEx.selectMyNotify(id);
	}

}
